/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const officeRouter = {
  path: '/office',
  component: Layout,
  name: '基础资料',
  meta: {
    title: '基础资料',
    subtitle:'设置',
    icon: 'menu_office'
  },
  children: [
    {
      path: '/sysOffice/list',
      component: () => import('@/views/sysOffice/list'),
      name: 'sysOffice-list',
      meta: { title: '公司部门' ,subtitle:'公司',icon: 'menu_sysOffice',permissions:['sysOffice.query']}
    },
    {
      path: '/sysOffice/add',
      component: () => import('@/views/sysOffice/add'),
      name: 'sysOffice-add',
      meta: { title: '新增组织' ,icon: 'menu_sysOffice'},
      hidden: true
    },
    {
      path: '/sysOffice/edit',
      component: () => import('@/views/sysOffice/edit'),
      name: 'sysOffice-edit',
      meta: { title: '修改组织' ,icon: 'menu_sysOffice', noCache:true},
      hidden: true
    },
    {
      path: '/sysPost/list',
      component: () => import('@/views/sysPost/list'),
      name: 'sysPost-list',
      meta: { title: '岗位管理' ,subtitle:'岗位',icon: 'menu_sysPost',permissions:['sysPost.query']}
    },
    {
      path: '/sysPost/add',
      component: () => import('@/views/sysPost/add'),
      name: 'sysPost-add',
      meta: { title: '新增岗位' ,icon: 'menu_sysPost'},
      hidden: true
    },
    {
      path: '/sysPost/edit',
      component: () => import('@/views/sysPost/edit'),
      name: 'sysPost-edit',
      meta: { title: '修改岗位' ,icon: 'menu_sysPost'},
      hidden: true
    },
    {
      path: '/sysEmployee/list',
      component: () => import('@/views/sysEmployee/list'),
      name: 'sysEmployee-list',
      meta: { title: '员工管理' ,subtitle:'员工',icon: 'menu_sysEmployee',permissions:['sysEmployee.query']}
    },
    {
      path: '/sysEmployee/add',
      component: () => import('@/views/sysEmployee/add'),
      name: 'sysEmployee-add',
      meta: { title: '新增员工' ,icon: 'menu_sysEmployee'},
      hidden: true
    },
    {
      path: '/sysEmployee/edit',
      component: () => import('@/views/sysEmployee/edit'),
      name: 'sysEmployee-edit',
      meta: { title: '修改员工' ,icon: 'menu_sysEmployee'},
      hidden: true
    },
    {
      path: '/sysRole/list',
      component: () => import('@/views/sysRole/list'),
      name: 'sysRole-list',
      meta: { title: '角色管理' ,subtitle:'角色',icon: 'menu_sysRole',permissions:['sysRole.query']}
    },
    {
      path: '/sysUser/list',
      component: () => import('@/views/sysUser/list'),
      name: 'sysUser-list',
      meta: { title: '用户权限' ,subtitle:'权限',icon: 'menu_sysUser',permissions:['sysUser.query']}
    },

  
    {
      path: '/mapLine/list',
      component: () => import('@/views/mapLine/list'),
      name: 'mapLine-list',
      meta: { title: '地图围栏',subtitle:'线路', icon: 'menu_supplier',permissions:['mapLine.query'] }
    },
    {
      path: '/mapLine/add',
      component: () => import('@/views/mapLine/add'),
      name: 'mapLine-add',
      meta: { title: '新增线路', icon: 'menu_supplier' },
      hidden: true
    },
    {
      path: '/mapLine/edit',
      component: () => import('@/views/mapLine/edit'),
      name: 'mapLine-edit',
      meta: { title: '修改线路', icon: 'menu_supplier' },
      hidden: true
    },

  ]
}
export default officeRouter
